home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1997 August
/
Walnut Creek CDROM.7z
/
LISTINGS
/
V_12_11
/
ALLISON
/
TSTR.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-09-13
|
229 b
|
19 lines
// tstr.cpp
#include <iostream.h>
#include "str.h"
main()
{
string s("hello"), t = s;
t[0] = 'j';
cout << "s == " << s << endl;
cout << "t == " << t << endl;
return 0;
}
/* Output:
s == jello
t == jello
*/